using System.Collections.Generic;
using System.Runtime.Serialization;

namespace GraphMyCode.Web.Dtos
{
	[DataContract]
	public class VertexDto
	{
		public VertexDto()
		{
			Attributes = new Dictionary<string, string>();
		}

		[DataMember]
		public int Id { get; set; }

		[DataMember]
		public double X { get; set; }

		[DataMember]
		public double Y { get; set; }

		[DataMember]
		public Dictionary<string, string> Attributes { get; private set; }

		[DataMember]
		public string Text { get; set; }

		[DataMember]
		public string Color { get; set; }

		[DataMember]
		public string Type { get; set; }

		[DataMember]
		public double Weight { get; set; }

		[DataMember]
		public NodeShape Shape { get; set; }
	}
}